<?php
use Jialeo\LaravelSchemaExtend\Schema;
//use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopPicturesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_pictures', function (Blueprint $table) {
            $table->comment = '轮播图表';
            $table->increments('id')->comment('图片管理ID');
			$table->string('title')->default('')->comment('标题');
			$table->tinyInteger('open')->default(1)->comment('状态:0=否,1=是');
			$table->tinyInteger('type')->comment('图片类型:1=首页轮播图,2=咨询轮播图,3=首页广告图');
			$table->integer('image_id')->nullable()->comment('图片id');
			$table->tinyInteger('status')->default(1)->comment('状态:0=禁用,1=启用');
			$table->integer('sort')->default(1)->comment('排序');
			$table->string('url',200)->nullable()->comment('跳转链接');	
			$table->tinyInteger('the_jump')->nullable()->comment('是否跳转:0=否,1=跳转网页,2=跳转小程序页面,3=跳转详情');
			$table->text('content')->nullable()->comment('详情');
            $table->timestamp('created_at')->nullable()->comment('创建时间');
			$table->timestamp('updated_at')->nullable()->comment('更新时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_pictures');
    }
}
